#ifndef __MeshManager_H__
#define __MeshManager_H__

#include "video/Mesh.h"
#include "video/ResManager.h"

#include <string>

namespace KEngine
{

class TextureManager;
class MeshManager : public ResManager<Mesh>
{


public:

	MeshManager();
	virtual ~MeshManager();

	Mesh* create(std::string& name);
	void releaseByName(std::string& name);
	
	void setTextureMgr(TextureManager* textureMgr)
	{
		mTextureMgr = textureMgr;
	}
	TextureManager* getTextureMgr()
	{
		return mTextureMgr;
	}
protected:
	TextureManager* mTextureMgr;
};

}
#endif 